Page({
  data: {
    currentTab: 0,
    clientHeight: 'auto'
  },
  onLoad: function() {
    var res = wx.getSystemInfoSync();
    var clientHeight = ((res.windowHeight * 2)-234)+ 'rpx';
    this.setData({
      clientHeight: clientHeight
    })
  },
  stopTouchMove: function () {
    return false;
  },
  clickTab: function(e) {
    var res = wx.getSystemInfoSync();
    var clientHeight = ((res.windowHeight * 2) - 234) + 'rpx';
    if (this.data.currentTab === e.target.dataset.current) {
      return false;
    } else {
      this.setData({
        currentTab: e.target.dataset.current,
        clientHeight: clientHeight
      })
    }
  }

})